<?php

	include "conn.php";

	$result=mysql_query("select * from newslist");

	$newslist=array();
	for ($i=0; $i < mysql_num_rows($result); $i++) {
		$newslist[$i]=mysql_fetch_array($result,MYSQL_ASSOC);
	}

	echo json_encode($newslist);

?>